from selenium import webdriver
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.common.by import By
from abc import ABC, abstractmethod


class LoginPage(ABC):
    def __init__(self, driver: WebDriver):
        self.driver = driver
        self.input_username = (By.ID, 'username')
        self.input_password = (By.ID, 'password')
        self.login_button = (By.XPATH,'')
        self.iframe = (By.XPATH,'//*[@id="loginDiv"]/iframe')

    @abstractmethod
    def open_login_url(self, url):
        pass
    @abstractmethod
    def enter_name(self, username, password):
        pass

    @abstractmethod
    def click_sumit_button(self):
        pass

    def switch_iframe(self):
        pass

